Skip to content

FED-3528 React 18 dual support #84

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 43 commits into from
May 20, 2025
Merged

Conversation

sydneyjodon-wk
Copy link
Contributor

@sydneyjodon-wk sydneyjodon-wk commented May 6, 2025

Motivation

We'll need to set up dual support for React 17 and 18 in react_testing_library (RTL).

Changes

  • Addressed the last couple bits of feedback on React 18 #81 and FED-3273 SPIKE - do not merge: React 18 dual versions #82
  • Updated tests to run on both React 17 and 18
  • Revert React 17 JS bundle back to the one from master with a couple updates to the way APIs are exported to get them to work with the dual version support
    • also added regression test for the specific issue that caught this
  • Added a CI check to verify that all JS bundle updates are checked in

Release Notes

Review

See CONTRIBUTING.md for more details on review types (+1 / QA +1 / +10) and code review process.

QA Checklist

Merge Checklist

While we perform many automated checks before auto-merging, some manual checks are needed:

  • A Frontend Frameworks Design member has reviewed these changes
  • There are no unaddressed comments - this check can be automated if reviewers use the "Request Changes" feature
  • For release PRs - Version metadata in Rosie comment is correct

aaronlademann-wf and others added 21 commits October 22, 2024 11:54
Derived from building master (3.0.2) with the following changes:

    diff --git a/js_src/rollup.config.js b/js_src/rollup.config.js
    index 38448f5..e8432dfc 100644
    --- a/js_src/rollup.config.js
    +++ b/js_src/rollup.config.js
    @@ -68 +68 @@ export default (commandFlags) => {
    -        format: 'umd',
    +        format: 'esm',
@sydneyjodon-wk sydneyjodon-wk marked this pull request as ready for review May 8, 2025 22:28
Copy link
Contributor

@greglittlefield-wf greglittlefield-wf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a couple small comments; this looks great!!

Copy link
Contributor

@greglittlefield-wf greglittlefield-wf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One more super minor comment, otherwise LGTM!

Copy link
Contributor

@greglittlefield-wf greglittlefield-wf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Changes look good
  • CI passes
  • CI is running in both React 17 and 18, and tagged tests validate that both 17 and 18 are actually being tested against
  • React 17 bundle
    • Verified that rtl-17.esm.js exactly matches master's JS bundle, except for UMD->ESM import/export boilerplate
    • Accessible name whitespace regression test passes/fails as expected
  • JS bundle step fails when there are untracked changes
  • All AC addressed

+10

@sydneyjodon-wk
Copy link
Contributor Author

@Workiva/release-management-p

Copy link

@rmconsole-wf rmconsole-wf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 from RM

@btr-rmconsole-2 btr-rmconsole-2 bot merged commit 16b868d into master May 20, 2025
14 checks passed
@btr-rmconsole-2 btr-rmconsole-2 bot deleted the FED-3528-r18-dual-support branch May 20, 2025 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants